import request from '@/utils/request'

// 查询利润明细列表
export function listProfitDetail(query) {
  return request({
    url: '/operations/profitDetail/list',
    method: 'get',
    params: query
  })
}

// 查询利润明细详细
export function getProfitDetail(id) {
  return request({
    url: '/operations/profitDetail/' + id,
    method: 'get'
  })
}

// 新增利润明细
export function addProfitDetail(data) {
  return request({
    url: '/operations/profitDetail',
    method: 'post',
    data: data
  })
}

// 修改利润明细
export function updateProfitDetail(data) {
  return request({
    url: '/operations/profitDetail',
    method: 'put',
    data: data
  })
}

// 删除利润明细
export function delProfitDetail(id) {
  return request({
    url: '/operations/profitDetail/' + id,
    method: 'delete'
  })
}

// 导出利润明细
export function exportProfitDetail(query) {
  return request({
    url: '/operations/profitDetail/export',
    method: 'post',
    params: query
  })
}

